home *** CD-ROM | disk | FTP | other *** search
- -- card: 2947 from stack: in
- -- bmap block id: 8833
- -- flags: 0000
- -- background id: 2705
- -- name:
-
-
- -- part 1 (field)
- -- low flags: 01
- -- high flags: 2007
- -- rect: left=249 top=27 right=281 bottom=423
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: index
- ----- HyperTalk script -----
- on mouseUp
- get item 2 of the clickLoc
- subtract item 2 of the rect of the target from it
- add the scroll of the target to it
- subtract 5 from it -- Correct for wide margins
- divide it by the textHeight of the target
- get trunc(it)+1
- get line it of value(the target)
- if it is not empty then
- push card
- set lockScreen to true
- go to next card
- find it in field "command"
- if it is not in field "command" then pop card
- else
- get the id of this card
- pop card
- push card
- set lockScreen to false
- visual effect zoom open
- go to it
- end if
- end if
- end mouseUp
-
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=290 top=285 right=307 bottom=399
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Update Index
- ----- HyperTalk script -----
- on mouseUp
- put empty into card field "index"
- repeat with i = 2 to the number of cards
- get word 1 of field "command" of card i
- if "(" is in it then delete char offset("(",it) to length(it) of it
- put it & return after card field "index"
- end repeat
- end mouseUp
-
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=274 top=315 right=337 bottom=416
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Sort Cards by Name
- ----- HyperTalk script -----
- on mouseUp
- sort by field "command"
- end mouseUp
-
-
-
- -- part 4 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=19 top=289 right=323 bottom=55
- -- title width / last selected line: 0
- -- icon id / first selected line: 32670 / 32670
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
- ----- HyperTalk script -----
- on mouseUp
- show all cards
- end mouseUp
-
-
-
- -- part 5 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=35 top=104 right=172 bottom=183
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 2
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name:
-
-
- -- part 6 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=42 top=185 right=218 bottom=179
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 2
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=19 top=253 right=287 bottom=55
- -- title width / last selected line: 0
- -- icon id / first selected line: 902 / 902
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
- ----- HyperTalk script -----
- on mouseUp
- visual effect wipe right
- go to previous card
- end mouseUp
-
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=58 top=253 right=287 bottom=94
- -- title width / last selected line: 0
- -- icon id / first selected line: 26425 / 26425
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
- ----- HyperTalk script -----
- on mouseUp
- visual effect wipe left
- go to next card
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=57 top=289 right=323 bottom=93
- -- title width / last selected line: 0
- -- icon id / first selected line: 29114 / 29114
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
- ----- HyperTalk script -----
- on mouseUp
- visual effect zoom close
- pop card
- end mouseUp
-
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: 0001
- -- rect: left=42 top=180 right=217 bottom=190
- -- title width / last selected line: 0
- -- icon id / first selected line: 8538 / 8538
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name:
- ----- HyperTalk script -----
- on mouseDown
- hide the target
- wait until the mouse is up
- wait 1 seconds
- show the target
- end mouseDown
-
-
-
- -- part 12 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=22 top=36 right=58 bottom=131
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Click me first
- ----- HyperTalk script -----
- on mouseUp
- show card field "release notes"
- show button "Okay"
- end mouseUp
-
-
-
- -- part 13 (field)
- -- low flags: 81
- -- high flags: 2004
- -- rect: left=54 top=50 right=285 bottom=487
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: release notes
-
-
- -- part 14 (button)
- -- low flags: 80
- -- high flags: A003
- -- rect: left=395 top=250 right=272 bottom=463
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Okay
- ----- HyperTalk script -----
- on mouseUp
- hide button "Okay"
- hide card field "release notes"
- end mouseUp
-
-
-
- -- part contents for card part 5
- ----- text -----
- HyperCard
- Serial Port Toolkit Documentation
-
- -- part contents for card part 6
- ----- text -----
- by
- Harry Chesley
-
- -- part contents for card part 13
- ----- text -----
- 2.5b1 Release Notes:
-
- Welcome to the HyperCard Serial Port Toolkit.
-
- The best place to start is by clicking on the SPOverview line in the command/topic list on the right side of the screen.
-
- Remember to declare the globals described in SPOverview. Otherwise things won't work properly.
-
- -- part contents for card part 1
- ----- text -----
- breakSPort
- charsAvailable
- closeSPort
- configureSPort
- killSPort
- recvChars
- recvUpTo
- sendSPort
- sendSPortDone
- setSPortBufferSize
- SPortBufferSize
- SPortConfiguration
- SPortVersion
- SPOverview
-